package org.shoukaiseki.test.business.user.controller;

import org.shoukaiseki.test.common.view.ResultModel;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.ResponseBody;

/**
 **/
@Controller
public class HelloController {

    @ResponseBody
    @PostMapping(path="/test1")
    public ResultModel test1(){
        ResultModel result=new ResultModel();
        result.setMsg("test1");
        return result;
    }

    @ResponseBody
    @PostMapping(path="/test2")
    public ResultModel test2(){
        ResultModel result=new ResultModel();
        result.setMsg("test2");
        return result;
    }
}
